
package com.syu.loopcure.compensator.enums;
/**  
 * ClassName:StatusEnum <br/>   
 * Date:     2020年8月12日 下午2:10:29 <br/>  
 * @author   zhucun
 * @since    JDK 1.8  
 */
public enum StatusEnum {

	/** 1:失败待补偿 */
	FAIL_NEED_COMPENSATOR("1","失败待补偿"),
	/** 2:取消补偿 */
	CANCEL_COMPENSATOR("2","取消补偿"),
	/** 3:补偿中 */
	DOING_COMPENSATOR("3","补偿中"),
	/** 4:补偿成功 */
	SUCCESS_COMPENSATOR("4","补偿成功"),
	/** 5:重试次数达上限不在补偿 */
	MAXIMUM_NUMBER_OF_TIMES_COMPENSATOR("5","重试次数达上限不在补偿"),
	;
	
	private String code;
	private String msg;
	
	StatusEnum(String code,String msg) {
		this.code = code;
		this.msg = msg;
	}

	/**  
	 * code.  
	 *  
	 * @return  the code  
	 * @since   JDK 1.8  
	 */
	public String getCode() {
		return code;
	}

	/**  
	 * code.  
	 *  
	 * @param   code    the code to set  
	 * @since   JDK 1.8  
	 */
	public void setCode(String code) {
		this.code = code;
	}

	/**  
	 * msg.  
	 *  
	 * @return  the msg  
	 * @since   JDK 1.8  
	 */
	public String getMsg() {
		return msg;
	}

	/**  
	 * msg.  
	 *  
	 * @param   msg    the msg to set  
	 * @since   JDK 1.8  
	 */
	public void setMsg(String msg) {
		this.msg = msg;
	}
}
  
